package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 课次状态
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("课次状态")
public enum LessonStatusEnum implements DictEnum<Integer> {
    STOPPED(0, "已停课", "gray"),
    WAITING(1, "待上课", "green"),
    STUDYING(2, "进行中", "blue"),
    COMPLETED(3, "已上课", "gray");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String label;
    private final String color;
}
